const port = process.env.port || process.env.npm_config_port || 9528 // dev port
module.exports = {
  publicPath: './',
  outputDir: 'dist',
  assetsDir: 'static',
  lintOnSave: false,
  productionSourceMap: false,
  devServer: {
    port: port,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },
    // 代理服务器
    proxy: {
      '/xxx': {
        target: 'http://127.0.0.1/heimamm/public',
        pathRewrite: {
          '^/xxx': ''
        }
      }
    }
  }
}
